package blatt3;

//CannonBall class
//Described in Chapter 6 of
//Understanding Object - Oriented Programming with Java
//by Timothy A Budd
//Published by Addison - Wesley
//
//see ftp://ftp.cs.orst.edu / pub / budd / java / ReadMe.html
//for further information
//
//reformatted. peter, oct 2000

public class CannonBall extends Ball {
	public CannonBall(int sx, int sy, int r, double dx, double dy) {
		super(sx, sy, r);

		setMotion(dx, dy);
	}

	public void move() {
		dy = dy + 0.3;

		// effect of gravity
		super.move();
		// update the ball position
	}
}
